import router from '@system.router';
export default{
    data:{
        colorlist:["#66CDCA", "#000000"],
        tabbarItems: [
            {
                img: 'common/images1/shouye1.png',
                simg: 'common/images1/shouye.png',
                name: '首页'
            },
            {
                img: 'common/images1/tuisong1.png',
                simg: 'common/images1/tuisong.png',
                name: '推送',
            },
            {
                img:  'common/images1/wode1.png',
                simg: 'common/images1/wode.png',
                name: '我的'
            }
        ]
    },
    props: {
        index: {
            default:0,
        },
    },
    jump(index){
        switch(index){
            case 0:router.push({
                uri:'pages/shouye/shouye'
            }); break;
            case 1:router.push({
                uri:'pages/tuisong/tuisong'
            }); break;
            case 2:router.push({
                uri:'pages/wode/wode'
            }); break;
        }
    },
}